package com.auxgroup.smarthome.repo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;



@Repository
public class AppSleepDiyRedisRepo extends BaseRepo{

    public AppSleepDiyRedisRepo(@Value("${appScheduleJob.shardingTotalCount}") int shardingTotalCount) {
        super("app_sleep_diy/*",shardingTotalCount);
    }

    public void deleteCache(String deviceId){
        objectRedis.delete("app_sleep_diy/"+deviceId);
    }

}
